package Reflect;

import Reflect.annotations.AutoRunClass;

public class ReflectDemo7 {
    public static void main(String[] args) throws Exception {

        Class cls = Class.forName("Reflect.Person");
        //  是否被特定的注解标记了
        System.out.println(cls.isAnnotationPresent(AutoRunClass.class)?"被标记了" : "没有被标记");

    }
}
